/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.comut.crud.ejb.interfaces;

import com.comut.crud.pojo.mobile.Mobile;
import com.comut.lib.exception.ObjectFoundException;
import com.comut.lib.exception.ObjectNotFoundException;
import javax.jws.WebMethod;

/**
 *
 * @author asantos
 */
public interface IMobileAction {
    
    /**
     * Inserts Mobile on the database
     *
     * @param mobile the {@link Mobile} to be inserted
     * @return the inserted {@link Mobile}
     */
    @WebMethod
    public Mobile insertMobile(Mobile mobile) throws ObjectFoundException;

    /**
     * Deletes a Mobile from the database
     *
     * @param mobile the {@link Mobile} to be deleted
     */
    @WebMethod
    public void deleteMobile(Mobile mobile) throws ObjectNotFoundException;

    /**
     * Update a event on the database
     *
     * @param mobile the update {@link mobile}     * 
     */
    @WebMethod
    public void updateMobile(String mobile) throws ObjectNotFoundException;

    /**
     * Gets a Mobile from the database
     *
     * @param mobile the {@link Mobile} to be found
     * @return the {@link Mobile} found
     */
    @WebMethod
    public Mobile getMobile(Mobile mobile) throws ObjectNotFoundException;
}
